package com.electric.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 故障记录
 * </p>
 *
 * @author zhangbin
 * @since 2018-08-28
 */
@TableName("repair_record")
public class RepairRecord extends Model<RepairRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("seq_id")
    private String seqId;
    /**
     * 故障类型
     */
    @TableField("repair_type")
    private String repairType;
    /**
     * 电压等级
     */
    @TableField("voltage_level")
    private String voltageLevel;
    /**
     * 处理结果
     */
    @TableField("repair_result")
    private String repairResult;
    /**
     * 户号
     */
    @TableField("customer_number")
    private String customerNumber;
    /**
     * 恢复日期
     */
    @TableField("repair_date")
    private Date repairDate;
    /**
     * 故障日期
     */
    @TableField("failure_date")
    private Date failureDate;

    public String getSeqId() {
        return seqId;
    }

    public void setSeqId(String seqId) {
        this.seqId = seqId;
    }

    public String getRepairType() {
        return repairType;
    }

    public void setRepairType(String repairType) {
        this.repairType = repairType;
    }

    public String getVoltageLevel() {
        return voltageLevel;
    }

    public void setVoltageLevel(String voltageLevel) {
        this.voltageLevel = voltageLevel;
    }

    public String getRepairResult() {
        return repairResult;
    }

    public void setRepairResult(String repairResult) {
        this.repairResult = repairResult;
    }

    public String getCustomerNumber() {
        return customerNumber;
    }

    public void setCustomerNumber(String customerNumber) {
        this.customerNumber = customerNumber;
    }

    public Date getRepairDate() {
        return repairDate;
    }

    public void setRepairDate(Date repairDate) {
        this.repairDate = repairDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.seqId;
    }

    @Override
    public String toString() {
        return "RepairRecord{" +
        ", seqId=" + seqId +
        ", repairType=" + repairType +
        ", voltageLevel=" + voltageLevel +
        ", repairResult=" + repairResult +
        ", customerNumber=" + customerNumber +
        ", repairDate=" + repairDate +
        "}";
    }

	public Date getFailureDate() {
		return failureDate;
	}

	public void setFailureDate(Date failureDate) {
		this.failureDate = failureDate;
	}
}
